import requests


class HeaderUtil:
    @classmethod
    def header_util(cls):
        url =  "http://ihrm2-test.itheima.net/api/sys/login"
        data = {"mobile": "13800000002","password": "123456"}
        header = {"Content-Type": "application/json"}
        resp = requests.post(url=url,headers=header,json=data)
        token = resp.json().get("data")
        return token

if __name__ == '__main__':
    print(HeaderUtil.header_util())